package com.stox.client.embedded.data.provider;

import java.util.List;

import com.stox.client.api.data.provider.ExchangeClient;
import com.stox.services.data.provider.manager.ExchangeManager;
import com.stox.shared.core.model.Exchange;
import com.stox.shared.core.util.DebugUtil;

public class EmbeddedExchangeClient implements ExchangeClient {
	
	public static final EmbeddedExchangeClient INSTANCE = new EmbeddedExchangeClient();
	
	private EmbeddedExchangeClient() {

	}
	
	@Override
	public List<Exchange> findAll() {
		DebugUtil.printStack();
		return ExchangeManager.INSTANCE.findAll();
	}
	
	@Override
	public Exchange findOne(Long id) {
		DebugUtil.printStack();
		return ExchangeManager.INSTANCE.findOne(id);
	}

}
